package com.dao;

import java.io.Serializable;
import java.util.List;

import javax.xml.ws.WebServiceException;

import com.enetiy.Userinfo;
import com.enetiy.Users;

public interface UserinfoDao {
	public Userinfo selectUserinfo(int uid ) throws Exception;
	public void updateUserinfo(Userinfo ui) throws Exception;
	public Serializable insertUserinfo(Userinfo ui) throws Exception;
	public void deleteUserinfo(Userinfo ui) throws Exception ;
	
	//验证用户(根据token码)
	public Userinfo selectUserToken(String token,int id) throws Exception;
	//验证用户(根据mac)
	public Userinfo selectUserMac(String Mac) throws Exception; 
	//查询所有用户信息
	public List<Userinfo> selectUserinfos() throws Exception;
}
